package com.liziing.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.liziing.pojo.Users;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface UsersMapper extends BaseMapper<Users> {
    @Select("SELECT users.id, users.name FROM users")
    List<Users> getUsers_List_Data();

    @Delete("delete from users where name = #{name}")
    void deleteUser(Users users);
}
